﻿Imports System.Data.OleDb

Public Class DatabaseProvider
    'Private Shared _ConnectString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\DoAnquanlythuvien\QuanLyNhanVien\bin\Debug\QUANLYTHUVIEN.accdb"
    Public Shared Function connectData() As OleDbConnection
        Dim cnStr As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=QUANLYTHUVIEN.accdb"
        Dim cn As New OleDbConnection(cnStr)
        cn.Open()
        Return cn
     
    End Function
End Class
